use Action;


### Places an entity on a map
### Given parameters must be:
###
### ---- ENTITY: A reference to the entity to be placed
### ---- MAP A reference to the map to be placed on
### ---- X, Y: A position on the map
### ---- CATEGORY: Optionally, a category to be placed into
###
### ---------------------------------------------------------
### =========================================================
package PlaceEntityAction;

@ISA = qw/Action/;

sub init{
    my $self = shift;
    $self->dependencies(qw/EntityManager MapManager LogManager InputManager/);
}

sub perform{
    my $self=shift;
    
    return $self->{OperationManager}->runOperations($self->params, qw/ValidateActingEntity ValidateMap ValidatePosition PlaceEntity/);

}
